/** 推广奖励相关 */
import request from '@/utils/request'

// 申请成为推广大使
export function apply(data) {
	return request({
		url: '/technicianapp/Distribution/apply',
		method: 'post',
		data
	})
}

// 推广大使信息
export function personalInfo(params) {
	return request({
		url: '/technicianapp/Distribution/userInfo',
		method: 'get',
		params
	})
}

// 推广相关数据
export function rewardStatistics(params) {
	return request({
		url: '/technicianapp/Distribution/spreadInfo',
		method: 'get',
		params
	})
}

// 佣金记录
export function rewardList(params) {
	return request({
		url: '/technicianapp/Distribution/brokerageList',
		method: 'get',
		params
	})
}

// 邀请记录
export function invitationList(params) {
	return request({
		url: '/technicianapp/Distribution/team',
		method: 'get',
		params
	})
}

// 邀请二维码
export function invitationQrcode(params) {
	return request({
		url: '/technicianapp/Distribution/getQrcode',
		method: 'get',
		params
	})
}